package com.project.blog.controller;

import com.project.user.entity.entitly.UserInfo;

import java.util.List;

public interface BlogClassification {
    /**
     * get userinfo BlogClasses list
     * @param user user info
     * @param blog blogClass info
     * @return get userinfo BlogClasses list
     * @throws Exception sqlExample
     */
    List<BlogClassification> SearchBlogClassifications(UserInfo user,BlogClassification blog) throws Exception;

    /**
     * insert into blog class table blog info successfully
     * @param blog blog info
     * @return insert into blog class table blog info successfully
     * @throws Exception sqlExample
     */
    int insertBlogClassification(BlogClassification blog) throws Exception;

    /**
     * update blogClass info successfully
     * @param blog blogClass info
     * @return  update blogClass info successfully
     * @throws Exception sqlExample
     */
    int updateBlogClassification(BlogClassification blog) throws Exception;

    /**
     * delete blogClass info successfully
     * @param blog blogClass info
     * @return  update blogClass info successfully
     * @throws Exception sqlExample
     */
    int deleteBlogClassification(BlogClassification blog)throws Exception;
}
